package com.cbl.v.ssczs.mode.baseapi;

import android.util.Log;

import com.cbl.v.ssczs.mode.net.HttpResponseHandler;
import com.cbl.v.ssczs.mode.net.HttpUtils;
import com.google.gson.Gson;

import org.xutils.http.RequestParams;

/**
 * Created by 王凡 on 2017/8/21.
 */

public class DataApi extends BaseApi {

    /**
     * 获取数据
     * @param appId
     * @param handler
     */
    public static void getData( HttpResponseHandler handler) {
        RequestParams params = new RequestParams(getOuterAbsoluteUrl(APPID));
        Log.i("TTT","参数"+new Gson().toJson(params));
        HttpUtils.get(params, handler);
    }

    /**
     * 获取彩票数据
     * @param url
     * @param handler
     */
    public static void getBallData(String url, HttpResponseHandler handler) {
        RequestParams params = new RequestParams(url);
        Log.i("TTT","参数"+new Gson().toJson(params));
        HttpUtils.get(params, handler);
    }

}
